﻿<Window x:Class="SkyShell.BrowserWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.wpf4"
        
    Title="Sign In" Height="600" Width="400" DataContext="{Binding Source={StaticResource Locator}, Path=ShareContent}">
    <Grid>
        <WebBrowser Name="webBrowser" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10,10" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="LoadCompleted">
                    <cmd:EventToCommand Command="{Binding ApplyAccessToken}" PassEventArgsToCommand="True"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </WebBrowser>
    </Grid>
</Window>

